package com.easy.payment.service;

import com.easy.bean.Address;
import com.easy.bean.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Service
@FeignClient(value = "easy-user")
public interface UserFeignService {

    @RequestMapping(method = RequestMethod.GET,value="/user/feign/address/{id}")
    Address getAddress(@PathVariable("id") int id);
    @RequestMapping(method = RequestMethod.GET,value="/user/feign/loginuser/{token}")
    Users getUser(@PathVariable("token") String token);
}
